<?php
$viewing_userid = $vars['viewing_userid'];
$owner = $vars['owner'];
$image = $vars['image'];
?>

<div class="compact_info">
                        <div><?php if ($viewing_userid != $owner->guid) echo 'by ' . $owner->username; ?></div>
                        <div><?php echo 'on ' . date('M j, y', $image->time_created); ?></div>
                    </div>